LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
        FFmpegExtractor.cpp \
        codec_utils.cpp \
        ffmpeg_utils.cpp \
        ffmpeg_cmdutils.c \
        ffmpeg_source.cpp \

LOCAL_C_INCLUDES += \
        $(TOP)/frameworks/native/include/media/openmax \
        $(TOP)/frameworks/av/include \
        $(LOCAL_PATH)/inc \
        $(LOCAL_PATH)/inc/ffmpeg \

LOCAL_SHARED_LIBRARIES := \
        liblog \
        libstagefright_foundation \
        libstagefright \
        libmedia \
        libbinder \
        libffmpeg \

LOCAL_STATIC_LIBRARIES := \
        libutils \
        libcutils

LOCAL_CFLAGS += -Werror -Wall
LOCAL_CLANG := true
LOCAL_SANITIZE := unsigned-integer-overflow signed-integer-overflow

LOCAL_MODULE := libffmpeg_utils

ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -Wno-psabi
endif

LOCAL_32_BIT_ONLY := true

include $(BUILD_SHARED_LIBRARY)
